import { WeaTools } from 'ecCom';

// 新建群投票
export const groupvoteaddcondition = params => WeaTools.callApi('/api/groupchatvote/condition/groupvoteaddcondition', 'GET', params);
// 群投票列表
export const getGroupVoteList = params => WeaTools.callApi('/api/groupchatvote/list/getGroupVoteList', 'GET', params);
// 新建群投票发布
export const groupchatvoteadd = params => WeaTools.callApi('/api/groupchatvote/base/groupchatvoteadd', 'POST', params);
// 删除群投票
export const groupchatvotedel = params => WeaTools.callApi('/api/groupchatvote/base/groupchatvotedel', 'POST', params);
// 批量分享
export const groupchatvoteshare = params => WeaTools.callApi('/api/groupchatvote/base/groupchatvoteshare', 'POST', params);
// 详情查看
export const viewGroupVote = params => WeaTools.callApi('/api/groupchatvote/base/groupchatvotealert', 'GET', params);
// 投票
export const savegroupvoteresult = params => WeaTools.callApi('/api/groupchatvote/base/savegroupvoteresult', 'POST', params);
// 投票人员列表
export const groupchatvoteprelist = params => WeaTools.callApi('/api/groupchatvote/list/groupchatvoteprelist', 'GET', params);
